package com.jiutianniao.p2p.acctrans.core.dal.dao;

import java.util.List;

import org.apache.ibatis.annotations.Insert;

import com.jiutianniao.p2p.acctrans.core.dal.model.AccountFreezeLogDO;
import com.jiutianniao.p2p.base.dao.BaseMapper;
import com.jiutianniao.p2p.trans.client.model.AccountFreezeLogQueryDto;
import com.jiutianniao.p2p.trans.client.model.AccountFreezeLogVO;

public interface AccountFreezeLogDao extends BaseMapper {

	@Insert("insert into account_freeze_log (account_no,out_order_no,action_type,amount,freeze_type,total_freeze_amount,gmt_create,operator)"
			+ "values(#{accountNo},#{outOrderNo},#{actionType},#{amount.cent},#{freezeType},#{totalFreezeAmount.cent},now(),#{operator})")
	void saveAccountFreezeLog(AccountFreezeLogDO accountFreezeLogDo);

	List<AccountFreezeLogVO> queryByCondition(
			AccountFreezeLogQueryDto accountFreezeLogQueryDto);
}
